package com.llmops.demo;

import com.google.gson.JsonObject;
import com.llmops.core.memory.MapDbMemoryStore;
import dev.langchain4j.data.message.ChatMessage;
import dev.langchain4j.internal.Json;

import java.util.List;

public class 记忆 {
    public static void main(String[] args) {
        MapDbMemoryStore store = new MapDbMemoryStore();
        List<ChatMessage> messages = store.getMessages(3);
        String s = Json.toJson(messages);
        System.out.printf(s);
    }
}
